import { createApp } from 'vue'
import App from './App.vue'
import Router from './router/index'
import store from './store/index'
import '@/styles/index.scss'

// ElementPlus 样式通过CDN的方式引入来加样式文件，提高应用加载速度；
import 'element-plus/theme-chalk/index.css'
const app = createApp(App)
// 全部导出icon
import * as ElIconModules from '@element-plus/icons'
for (const iconName in ElIconModules) {
  if (Reflect.has(ElIconModules, iconName)) {
    app.component(iconName, ElIconModules[iconName])
  }
}
app.use(Router).use(store).mount('#app')
